home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ WinNT Master Browser.xpl < prev    next >
Text File  |  2002-10-31  |  1KB  |  47 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="7"
  3. "COUNT"="2"
  4. "UIPATH"="Network\Server\Computer Browser Service"
  5. "NAME"="Master Browser Options"
  6. "VERSION"="2.05"
  7. "OSVERSION"="0101011"
  8. "WARNING"="1"
  9. "LANGUAGE"="VBScript"
  10. "TEXT 1"="NOT a Domain Master"
  11. "TEXT 2"="Domain Master!"
  12. "DESCRIPTION 1"="Electing a Master Browser guarantees there is only one Master Browser in a domain/workgroup. To control whether a PC is the Domain Master Browser use the controls."
  13. "DESCRIPTION 2"=""
  14. "AUTHOR"="Ojatex@aol.com"
  15. "CONTACTURL"="http://members.aol.com/ojatex/"
  16. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  17. "COMMENT 1"=" "
  18.  
  19. sP="HKLM\System\CurrentControlSet\Services\Browser\Parameters\IsDomainMaster"
  20.  
  21. Sub Plugin_Initialize 
  22.      i=RegReadValue(sP)
  23.      if i="FALSE" or IsEmpty(i) then 
  24.         SetUIElement 1,true
  25.      end if
  26.  
  27.      if i="Yes" then 
  28.         SetUIElement 2,true
  29.      end if
  30. End Sub
  31.  
  32. Sub Plugin_CheckData(ElementIndex)
  33. End Sub
  34.  
  35. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  36.  i=GetUIElement(1)
  37.  if i=true then
  38.     Call RegWriteValue(sP,"FALSE",1)
  39.  else
  40.     Call RegWriteValue(sP,"Yes",1)
  41.  end if
  42.  
  43. End Sub
  44.  
  45. Sub Plugin_Terminate 
  46. End Sub
  47.